package vns.client.service;

import java.util.List;

import vns.server.domain.Activity;
import vns.shared.ActivityDTO;
import vns.shared.ObjectDTO;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ActivityServiceAsync {

	void Create(ActivityDTO activity, AsyncCallback<Void> callback);

	void Create(List<ActivityDTO> listactivity, AsyncCallback<Void> callback);

	void Delete(ActivityDTO activity, AsyncCallback<Void> callback);

	void Delete(List<ActivityDTO> listactivity,
			AsyncCallback<List<ActivityDTO>> callback);

	void DTOLoadAll(AsyncCallback<List<ActivityDTO>> callback);

	void LoadByObjectFromDTO(ObjectDTO object, AsyncCallback<List<ActivityDTO>> callback);

	void LoadByObjectToDTO(ObjectDTO object, AsyncCallback<List<ActivityDTO>> callback);

	void UpdateByDTO(List<ActivityDTO> listactivity,
			AsyncCallback<List<ActivityDTO>> callback);

	void UpdateByDTO(ActivityDTO activity, AsyncCallback<Void> callback);

}
